package Class.Advance.MethodReference.ReferMemberMethod.OtherClass;

import java.util.ArrayList;
import java.util.Collections;

public class InnerMethod {
    public static void main(String[] args) {
        InnerMethodLibrary library = new InnerMethodLibrary();
        ArrayList<String> nameList = new ArrayList<>();
        Collections.addAll(nameList, "Jack", "Nick", "James", "Jason");
        nameList.stream()
                .filter(library::StringJudge)
                .forEach(s -> System.out.print(s + " "));
    }
}
